package com.bicon.botu.mall.order.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.bicon.botu.core.base.repository.mybatis.UuidBaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单退款退货记录
 * </p>
 *
 * @author 李双喜
 * @since 2018-06-14
 */
@Data
@TableName("after_sales_records")
public class AfterSalesRecords extends UuidBaseEntity<AfterSalesRecords> {


	/**
	 * 申请流水号
	 */
	@TableField("apply_no")
	private String applyNo;
	/**
	 * 客户ID
	 */
	@TableField("user_id")
	private String userId;
	/**
	 * 原始订单ID
	 */
	@TableField("order_goods_id")
	private String orderGoodsId;
	/**
	 * 原始订单号
	 */
	@TableField("order_goods_no")
	private String orderGoodsNo;
	/**
	 * 店铺ID
	 */
	@TableField("store_id")
	private String storeId;
	/**
	 * 退款类型(1:仅退款, 2:退货退款)
	 */
	private Integer type;
	/**
	 * 退款金额
	 */
	@TableField("pay_back_amount_calc")
	private BigDecimal payBackAmountCalc;
	/**
	 * 实际退款金额
	 */
	@TableField("pay_back_amount")
	private BigDecimal payBackAmount;
	/**
	 * 退款状态(1:已申请待处理, 2:商家已同意退货，待买家发货或待退款, 3:买家已发货，待商家收货, 4:商家已收货待退款, 5:已退款, 6:商家拒绝退货,7:买家撤销申请)
	 */
	private Integer status;
	/**
	 * 退款原因
	 */
	private String reason;
	/**
	 * 申请时间
	 */
	@TableField("apply_time")
	private Date applyTime;
	/**
	 * 处理时间
	 */
	@TableField("process_time")
	private Date processTime;
	/**
	 * 撤销时间
	 */
	@TableField("cancel_time")
	private Date cancelTime;
	/**
	 * 退款退回方式(0:余额, 1:支付宝, 2:微信, 3:银行卡)
	 */
	@TableField("pay_back_money_way")
	private Integer payBackMoneyWay;
	/**
	 * 是否退运费
	 */
	@TableField("pay_back_freight")
	private Integer payBackFreight;
	/**
	 * 退回运费金额
	 */
	@TableField("pay_back_freight_amount")
	private BigDecimal payBackFreightAmount;
	/**
	 * 是否收到货物 (0:未收到货物,1:收到货物)
	 */
	@TableField("goods_received")
	private Integer goodsReceived;
	/**
	 * 拒绝原因
	 */
	@TableField("reject_reason")
	private String rejectReason;
	/**
	 * 退款说明
	 */
	private String description;
	/**
	 * 退货收货点
	 */
	@TableField("delivery_point_id")
	private String deliveryPointId;
	/**
	 * 退货收货人
	 */
	@TableField("delivery_shipper")
	private String deliveryShipper;
	/**
	 * 退货区域
	 */
	@TableField("delivery_region")
	private String deliveryRegion;
	/**
	 * 退货详细收货地址
	 */
	@TableField("delivery_address")
	private String deliveryAddress;
	/**
	 * 退货联系电话
	 */
	@TableField("delivery_telephone")
	private String deliveryTelephone;
	/**
	 * 退货配送方式(1:物流配送,2:到店自送)
	 */
	@TableField("back_delivery_method")
	private Integer backDeliveryMethod;
	/**
	 * 物流公司
	 */
	@TableField("logistics_company_id")
	private String logisticsCompanyId;
	/**
	 * 物流公司code
	 */
	@TableField("logistics_company_code")
	private String logisticsCompanyCode;
	/**
	 * 物流单号
	 */
	@TableField("logistics_code")
	private String logisticsCode;
	/**
	 * 退货物流备注
	 */
	@TableField("logistics_description")
	private String logisticsDescription;
	/**
	 * 物流公司名称
	 */
	@TableField("logistics_company_name")
	private String logisticsCompanyName;
	/**
	 * 退款时间
	 */
	@TableField("back_time")
	private Date backTime;

	/**
	 * 退款交易号
	 */
	@TableField("pay_back_transaction_code")
	private String payBackTransactionCode;

	/**
	 * 确认收货时间
	 */
	@TableField("received_goods_time")
	private Date receivedGoodsTime;

	/**
	 * 物流公司电话
	 */
	@TableField("logistics_company_phone")
	private String logisticsCompanyPhone;

}
